package com.sophossystems.client.asmon.dto;

import java.io.Serializable;


/** 
 * This class represents the primary key of the RECOLECTA_DOC table.
 */
public class RecolectaDocPkDTO implements Serializable
{
	/**
	 * 
	 */
	private static final long serialVersionUID = 3399641279066304864L;

	protected int idRecolectaDoc;

	/** 
	 * This attribute represents whether the primitive attribute idRecolectaDoc is null.
	 */
	protected boolean idRecolectaDocNull;

	/** 
	 * Sets the value of idRecolectaDoc
	 */
	public void setIdRecolectaDoc(int idRecolectaDoc)
	{
		this.idRecolectaDoc = idRecolectaDoc;
	}

	/** 
	 * Gets the value of idRecolectaDoc
	 */
	public int getIdRecolectaDoc()
	{
		return idRecolectaDoc;
	}

	/**
	 * Method 'RecolectaDocPk'
	 * 
	 */
	public RecolectaDocPkDTO()
	{
	}

	/**
	 * Method 'RecolectaDocPk'
	 * 
	 * @param idRecolectaDoc
	 */
	public RecolectaDocPkDTO(final int idRecolectaDoc)
	{
		this.idRecolectaDoc = idRecolectaDoc;
	}

	/** 
	 * Sets the value of idRecolectaDocNull
	 */
	public void setIdRecolectaDocNull(boolean idRecolectaDocNull)
	{
		this.idRecolectaDocNull = idRecolectaDocNull;
	}

	/** 
	 * Gets the value of idRecolectaDocNull
	 */
	public boolean isIdRecolectaDocNull()
	{
		return idRecolectaDocNull;
	}

	/**
	 * Method 'equals'
	 * 
	 * @param _other
	 * @return boolean
	 */
	@Override
	public boolean equals(Object _other)
	{
		if (_other == null) {
			return false;
		}
		
		if (_other == this) {
			return true;
		}
		
		if (!(_other instanceof RecolectaDocPkDTO)) {
			return false;
		}
		
		final RecolectaDocPkDTO _cast = (RecolectaDocPkDTO) _other;
		if (idRecolectaDoc != _cast.idRecolectaDoc) {
			return false;
		}
		
		if (idRecolectaDocNull != _cast.idRecolectaDocNull) {
			return false;
		}
		
		return true;
	}

	/**
	 * Method 'hashCode'
	 * 
	 * @return int
	 */
	@Override
	public int hashCode()
	{
		int _hashCode = 0;
		_hashCode = 29 * _hashCode + idRecolectaDoc;
		_hashCode = 29 * _hashCode + (idRecolectaDocNull ? 1 : 0);
		return _hashCode;
	}

	/**
	 * Method 'toString'
	 * 
	 * @return String
	 */
	@Override
	public String toString()
	{
		StringBuffer ret = new StringBuffer();
		ret.append( "com.sophossystems.client.asmon.dto.RecolectaDocPk: " );
		ret.append( "idRecolectaDoc=" + idRecolectaDoc );
		return ret.toString();
	}

}
